﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PartyRepresentativeInfoEdit.aspx.cs" Inherits="ZHDJ.BranchCenter.Module.PartyRepresentative.PartyRepresentativeInfoEdit" %>


<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
    <style>
        .fontred {
            color: red;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" style="background-color: #0000FF">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server">
            <Items>
                <f:TabStrip ID="TabStrip1" ShowBorder="false" TabPosition="Top" AutoScroll="false"
                    EnableTabCloseMenu="false" ActiveTabIndex="0" Margin="0 auto" BodyPadding="2px"
                    runat="server">
                    <Tabs>
                        <f:Tab Title="基础信息" BodyPadding="5px" Layout="VBox"
                            runat="server">
                            <Items>
                                <f:Form BodyPadding="10px" ID="Form2"
                                    runat="server" Title="" ShowBorder="false" ShowHeader="false">
                                    <Rows>
                                        <f:FormRow>
                                            <Items>
                                                <f:DropDownList ID="ddlCategory" AutoPostBack="true" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged" EmptyText="==请选择==" LabelAlign="right" runat="server" Label="类型" Required="true" ShowRedStar="true" RequiredMessage="请选择类型">
                                                    <f:ListItem Value="1" Text="本单位" />
                                                    <f:ListItem Value="2" Text="外单位" />
                                                </f:DropDownList>
                                                <f:TextBox Hidden="true" ID="txt" runat="server" LabelAlign="right">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow runat="server" ID="frppMember">
                                            <Items>
                                                <f:TriggerBoxPicker Label="所属个人" LabelAlign="right" Width="180px"
                                                    runat="server" ID="ppMember" ShowTrigger1="true" ShowTrigger2="true" Trigger1Icon="Clear"
                                                    EnableEdit="false" WindinsTitle="选择所属个人" Required="true" ShowRedStar="true"
                                                    WindinsHeight="450px" EnableTrigger1PostBack="false" EnableTrigger2PostBack="false"
                                                    WindinsWidth="700px" WindinsUrl="../../../Share/Picker/MemberSinglePicker.aspx">
                                                </f:TriggerBoxPicker>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow runat="server" ID="frUserName" Hidden="true">
                                            <Items>
                                                <f:TextBox ID="txtUserName" runat="server" LabelAlign="right" Label="姓名" Required="true"
                                                    ShowRedStar="true" RequiredMessage="请填写姓名">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtMobileNo" runat="server" LabelAlign="right"
                                                    Label="联系方式" Required="true" ShowRedStar="true"
                                                    RequiredMessage="请填写联系方式">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtPost" runat="server" LabelAlign="right" Label="职务"
                                                    Required="true" ShowRedStar="true" RequiredMessage="请填写职务">
                                                </f:TextBox>
                                                <f:TextBox ID="txtEmail" runat="server" LabelAlign="right" Label="电子邮箱"
                                                    Required="true" ShowRedStar="true" RequiredMessage="请填写电子邮箱">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtAddress" runat="server" LabelAlign="right" Label="居住地址">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:NumberBox ID="txtOrderNo" MinValue="1" runat="server" LabelAlign="right" Label="排序号"
                                                    Required="true" ShowRedStar="true" RequiredMessage="请填写排序号">
                                                </f:NumberBox>
                                                <f:TextBox Hidden="true" ID="TextBox2" runat="server" LabelAlign="right">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                    </Rows>
                                </f:Form>
                            </Items>
                        </f:Tab>
                        <f:Tab Title="党代表图片设置" BodyPadding="5px" runat="server" Layout="VBox">
                            <Items>
                                <f:Panel ID="Panel33" ShowBorder="false" ShowHeader="false" runat="server" Layout="VBox" BoxConfigAlign="Center"
                                    BoxConfigPosition="Center" BoxConfigChildMargin="0 0 5 0" BodyPadding="5">
                                    <Toolbars>
                                        <f:Toolbar ID="Toolbar4" runat="server" Position="Top" ToolbarAlign="Center">
                                            <Items>
                                                <f:FileUpload runat="server" ID="filePhoto" ShowRedStar="false"
                                                    ButtonText="上传图片" ButtonOnly="true" Required="false" ButtonIcon="ImageAdd"
                                                    AutoPostBack="true" OnFileSelected="filePhoto_FileSelected">
                                                </f:FileUpload>
                                            </Items>
                                        </f:Toolbar>
                                    </Toolbars>
                                    <Items>
                                        <f:Panel ID="Panel2" BoxFlex="1" MinHeight="250px" Margin="0"
                                            runat="server" BodyPadding="5px" ShowBorder="false" ShowHeader="false">
                                            <Items>
                                                <f:Image ID="imgPhoto" ImageUrl="~/Content/icon/blank1.png" Width="250px" runat="server">
                                                </f:Image>
                                            </Items>
                                        </f:Panel>
                                    </Items>
                                </f:Panel>
                                <f:HiddenField Text="" ID="hdFileId" runat="server"></f:HiddenField>
                            </Items>
                        </f:Tab>
                    </Tabs>
                </f:TabStrip>
            </Items>
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="Form2" Icon="SystemSaveClose"
                            OnClick="btnSaveClose_Click" runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                        </f:ToolbarSeparator>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭" DisableControlBeforePostBack="True">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>


    </form>
</body>
</html>

<script>


    function ReDoLayout() {

        var panel1ClientID = '<%= Panel33.ClientID %>';

        F.ready(function () {

            window.setTimeout(function () {

                F(panel1ClientID).doLayout();
            }, 100);

        });
    }

    ReDoLayout();
</script>


